package com.landinfo.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 发送短信相关参数设置
 */
@Component
@ConfigurationProperties(prefix = "smsconfiginfo")
public class SmsSetting {
    /**
     * sms key id
     */
//    @Value("${smsconfiginfo.accessKeyId}")
    private String accessKeyId;
    /**
     * sms key secret
     */
//    @Value("${smsconfiginfo.accessKeySecret}")
    private String accessKeySecret;

    /**
     * 短信签名
     */
//    @Value("${smsconfiginfo.signName}")
    private String signName;

//    /**
//     * 气象保护站（对应code和地名）
//     */
////    @Value("${smsconfiginfo.weatherStations}")
//    private String weatherStations;
    /**
     * 气象保护站（对应code和地名）
     */
//    @Value("${smsconfiginfo.weatherStations}")
    private List<Map<String, String>> weatherStations = new ArrayList<>();

//    /**
//     * 气象因子（对应code和翻译）
//     */
////    @Value("${smsconfiginfo.weatherParas}")
//    private String weatherParas;
    /**
     * 气象因子（对应code和翻译）
     */
//    @Value("${smsconfiginfo.weatherParas}")
    private List<Map<String, String>> weatherParas;

    /**
     * 气象因子临界值（对应code和翻译）
     */
//    @Value("${smsconfiginfo.weatherParasMaxValue}")
    private List<Map<String, String>> weatherParasMaxValue;

    /**
     * 水质保护站（对应code和地名）
     */
//    @Value("${smsconfiginfo.waterStations}")
    private List<Map<String, String>> waterStations;

    /**
     * 水质因子（对应code和翻译）
     */
//    @Value("${smsconfiginfo.waterParas}")
    private List<Map<String, String>> waterParas;

    /**
     * 水质因子临界值（对应code和翻译）
     */
//    @Value("${smsconfiginfo.waterParasMaxValue}")
    private List<Map<String, String>> waterParasMaxValue;

    /**
     * 获取最近数据的时间，判断最近是否有数据返回，用于判断设备是否在线
     */
//    @Value("${smsconfiginfo.timeForGetToCheckOff}")
    private int timeForGetToCheckOff;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public List<Map<String, String>> getWeatherStations() {
        return weatherStations;
    }
    public void setWeatherStations(List<Map<String, String>> weatherStations) {
        this.weatherStations = weatherStations;
    }

//    public String getWeatherStations() {
//        return weatherStations;
//    }
//
//    public void setWeatherStations(String weatherStations) {
//        this.weatherStations = weatherStations;
//    }

    public List<Map<String, String>> getWeatherParas() {
        return weatherParas;
    }

    public void setWeatherParas(List<Map<String, String>> weatherParas) {
        this.weatherParas = weatherParas;
    }
//    public String getWeatherParas() {
//        return weatherParas;
//    }
//
//    public void setWeatherParas(String weatherParas) {
//        this.weatherParas = weatherParas;
//    }

    public List<Map<String, String>> getWaterStations() {
        return waterStations;
    }

    public void setWaterStations(List<Map<String, String>> waterStations) {
        this.waterStations = waterStations;
    }

    public List<Map<String, String>> getWaterParas() {
        return waterParas;
    }

    public void setWaterParas(List<Map<String, String>> waterParas) {
        this.waterParas = waterParas;
    }

    public List<Map<String, String>> getWeatherParasMaxValue() {
        return weatherParasMaxValue;
    }

    public void setWeatherParasMaxValue(List<Map<String, String>> weatherParasMaxValue) {
        this.weatherParasMaxValue = weatherParasMaxValue;
    }

    public List<Map<String, String>> getWaterParasMaxValue() {
        return waterParasMaxValue;
    }

    public void setWaterParasMaxValue(List<Map<String, String>> waterParasMaxValue) {
        this.waterParasMaxValue = waterParasMaxValue;
    }

    public int getTimeForGetToCheckOff() {
        return timeForGetToCheckOff;
    }

    public void setTimeForGetToCheckOff(int timeForGetToCheckOff) {
        this.timeForGetToCheckOff = timeForGetToCheckOff;
    }
}
